<h1>Addresss List</h1>

<table>
  <thead>
    <tr>
      <th>Id</th>
      <th>Street</th>
      <th>City</th>
      <th>State</th>
      <th>Zip</th>
      <th>Type</th>
      <th>Preferred</th>
      <th>Contact</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($addresss as $address): ?>
    <tr>
      <td><a href="<?php echo url_for('address/edit?id='.$address->getId()) ?>"><?php echo $address->getId() ?></a></td>
      <td><?php echo $address->getStreet() ?></td>
      <td><?php echo $address->getCity() ?></td>
      <td><?php echo $address->getState() ?></td>
      <td><?php echo $address->getZip() ?></td>
      <td><?php echo $address->getType() ?></td>
      <td><?php echo $address->getPreferred() ?></td>
      <td><?php echo $address->getContactId() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('address/new') ?>">New</a>
